package com.xyx.dao;

import com.xyx.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberMapper {
    /**
     *
     * 用户表
     * */
    List<Member> getAllMembers(@Param("name")String name);
    /**
     * 根据id查用户
     */
    Member getMemberById(@Param("id") Integer id);
    /**
     * 新增用户
     */
    int addMember(Member member);
    /**
     * 修改用户
     */
    int editMember(Member member);
    /**
     * 删除用户
     */
    int deleteMemberById(@Param("id") Integer id);
    /**
     * 批量删除
     */
    int deleteAllMember (@Param("idms") List<String> idms);
    /*
     *根据用户名查询用户
     * */
    Member getMemberByName(String name );
}

